import http from "./http"

const getAllDepartment = ()=>{
    const path = "/staff/departments"
    return http.get(path)
}

const addsStaff =(realname,email,password) =>{
    const path = "/staff/"
    return http.post(path,{realname,email,password})
}

const getStaffList =(page=1,size=10) =>{
    const path = `/staff/?page=${page}&size=${size}`
    return http.get(path)
}

export default {
    getAllDepartment,
    addsStaff,
    getStaffList
}